package poker;

import java.util.ArrayList;
import java.util.List;

public class Player {
    private int id;//玩家ID
    private List<poker> palyPokers=new ArrayList<poker>();//玩家手中的卡牌

    public void show(){
        for (poker p:palyPokers){
            System.out.print("  ["+p.getType()+" "+p.getNum()+"]  ");
        }
    }

    public List<poker> getPlayerPokers() {
        return palyPokers;
    }

    //按照规则，每人发一张
    public void setPlayerPokers(poker poker){
        this.palyPokers.add(poker);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
